﻿using System;
using System.Collections.Generic;
using Color = System.Drawing.Color;
using SwinGame;

namespace Gundam_2._0_Alpha.src
{
    public class CreateProfileMenu: IAction
    {
        public void DoAction(GameController gc)
        {
            int textPostXStart = 20, textPostYStart = 40,
                incrementY = 60;

            CreateMenuButtons menuCreator = new CreateMenuButtons();

            List<Button> buttonList = menuCreator.CreateButtons("save\\save.txt", textPostXStart, textPostYStart, incrementY,0);

            foreach (TextButton b in buttonList)
            {
                if (b.ButtonName == "<Empty>")
                    b.ButtonAction = new CreateProfileCreator();
                else
                    b.ButtonAction = new ICreateMissionSelect(b.ButtonName);
            }

            Stage profileMenu = new Stage(false);

            profileMenu.ButtonList = buttonList;

            gc.GameStages.Push(profileMenu);
        }
    }
}
